import Vue from "vue";
import App from "./App.vue";
import router from "./router";
import "vant/lib/index.css";
import Vant from "vant";
import { NavBar } from "vant";
import { Tabbar, TabbarItem } from "vant";

Vue.use(Tabbar);
Vue.use(TabbarItem);

// 把vant中所有的组件都导入了
Vue.use(Vant);
Vue.use(NavBar);

Vue.config.productionTip = false;

new Vue({
  beforeCreate() {
    Vue.prototype.$bus = this;
  },
});

new Vue({
  render: (h) => h(App),
  router,
}).$mount("#app");
